<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <link rel="shortcut icon" href="images/favicon.ico"/>
        <title>JForum :: #{resourcesController.extractResource('ADMIN_PANEL')}</title>
    </h:head>
    <h:body style="background-color: #111111">
      
       <c:if test="#{authorizationBean.user.gid == 1}">
        
            <div id="header">
                        <ui:insert name="header" >
                                <ui:include src="adminheader.xhtml" />
                        </ui:insert>
            </div>
                <center>
                <h:form>  
                    <p:growl id="messageGrowl" showDetail="true"/>
                    <p:panel header="#{resourcesController.extractResource('ADMIN_PANEL')}"
                            style="width:790px" 
                            footer="#{resourcesController.extractResource('ADMIN_PANEL')}">

                        <p:accordionPanel >

                            <p:tab title="#{resourcesController.extractResource('USER_MANAGEMENT')}">
                                <ui:insert name="management" >
                                    <ui:include src="management.xhtml" />
                                </ui:insert>
                            </p:tab>
                            
                            <p:tab title="#{resourcesController.extractResource('DATABASE_SELECTION')}">
                                <ui:insert name="dbselection" >
                                    <ui:include src="dbselector.xhtml" />
                                </ui:insert>
                            </p:tab>

                            <p:tab title="#{resourcesController.extractResource('ACTIVITY_TRACKING')}">
                                <ui:insert name="activity" >
                                    <ui:include src="activity.xhtml" />
                                </ui:insert>
                            </p:tab>     

                            <p:tab title="#{resourcesController.extractResource('LOGGING')}">
                                <ui:insert name="logging" >
                                    <ui:include src="systemlogs.xhtml" />
                                </ui:insert>
                            </p:tab>

                        </p:accordionPanel>

                    </p:panel>
                </h:form>
                </center>
                <ui:insert name="header" >
                                <ui:include src="footer.xhtml" />
                </ui:insert>
       </c:if>
    </h:body>
</html>

